package com.arsn.myf.business.entity;

import com.arsn.myf.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.format.annotation.DateTimeFormat;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 通知公告对象
 *
 * @author zhongrj
 * @date 2022-12-12 20:51:46
 */
@Data
@TableName("sys_notice")
@ApiModel(value = "Notice对象", description = "Notice对象")
public class Notice extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 主键
    */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
    * 标题
    */
    @ApiModelProperty(value = "标题")
    private String title;

    /**
    * 类型
    */
    @ApiModelProperty(value = "类型")
    private Integer type;

    /**
    * 发布时间
    */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @ApiModelProperty(value = "发布时间")
    private Date releaseTime;

    /**
    * 内容
    */
    @ApiModelProperty(value = "内容")
    private String content;

    /**
    * 状态
    */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
    * 是否已删除
    */
    @ApiModelProperty(value = "是否已删除")
    private Integer isDeleted;

}
